<template>
	<div style="height: 89vh; ">
		<iframe
		  src="https://www.jianguoyun.com/d/login"
		  id="iframe"
		  scrolling="no"
		  frameborder="0"
		  style="width: 100%;  height: 100vh;"
		></iframe>
	</div>
</template>
<script>
	export default{
		mounted() {
			var iframe = document.getElementById('iframe')
			
			const timer = setInterval(() => {
				if(iframe.contentWindow.document.title == '我的坚果云 - 坚果云 - 云盘|网盘|企业网盘|同步|备份|无限空间|免费网络硬盘|企业云盘'){
					window.sessionStorage.setItem('Jianguoyun_scale','1')
				}
			}, 500);
			this.$once('hook:beforeDestroy', () => {
			    clearInterval(timer);                                    
			})
		}
	}
</script>